﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
///BlogData 的摘要说明
/// </summary>
public class BlogAccountData
{
    public int id;
    public string account;
    public string des;
    public string accessToken;
    	/**
		 * token到期时间
		 */		
	public DateTime expireIn;
    public BlogAccountData()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    public string toJson()
    {
        return "{" + string.Format("\"id\":{0}, \"account\":\"{1}\", \"des\":\"{2}\", \"accessToken\":\"{3}\", \"expireInMillisecond\":{4}", id, account, des, accessToken, TimeUtil.ToMillisecond(expireIn)) + "}";
    }
}